package com.ruoyi.project.question.compose.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 问卷用户关联对象 questionnaire_user_conn
 * 
 * @author Bandit
 * @date 2021-12-14
 */
public class QuestionnaireUserConn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色的id */
    @Excel(name = "填写人的id")
    private Long uerId;

    /** 待填写问卷人id */
    @Excel(name = "问卷id")
    private Long questionnarieId;

    /** 该问卷人是否填写该问卷 */
    @Excel(name = "该问卷人是否填写该问卷")
    private Long state;

    /**
     * 被审查人id
     */
    private Long informantId;

    /**
     * 被审查人姓名
     */
    private String informantName;

    /**
     * 结束时间
     */
    private Date endTime;

    public QuestionnaireUserConn(Long uerId, Long questionnarieId, Long informantId, Long state) {
        this.uerId = uerId;
        this.questionnarieId = questionnarieId;
        this.informantId = informantId;
        this.state = state;
    }


    public String getInformantName() {
        return informantName;
    }

    public void setInformantName(String informantName) {
        this.informantName = informantName;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getInformantId() {
        return informantId;
    }

    public void setInformantId(Long informantId) {
        this.informantId = informantId;
    }

    public void setUerId(Long uerId)
    {
        this.uerId = uerId;
    }

    public Long getUerId()
    {
        return uerId;
    }
    public void setQuestionnarieId(Long questionnarieId)
    {
        this.questionnarieId = questionnarieId;
    }

    public Long getQuestionnarieId()
    {
        return questionnarieId;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uerId", getUerId())
            .append("questionnarieId", getQuestionnarieId())
            .append("state", getState())
            .append("informantId",getInformantId())
            .append("endTime",getEndTime())
            .toString();
    }
}
